-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix: prepare targets with rust-overlay #57
base: master
Are you sure you want to change the base?
Conversation
pre-install the system-images add doc of using avd without android-studio
(lib.optionals (stdenv.isLinux && stdenv.isx86_64) [ | ||
"x86_64-unknown-linux-gnu" | ||
]) ++ | ||
(lib.optionals (stdenv.isLinux && !stdenv.isx86_64) [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jb55 could you review this on the darwin and aarch64 linux? I'm simply following the rustup target list
, I guess they're in the right way but I'm not sure
(lib.optionals (stdenv.isLinux && !stdenv.isx86_64) [
"aarch64-unknown-linux-gnu"
]) ++
(lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [
"x86_64-apple-darwin"
]) ++
(lib.optionals (stdenv.isDarwin && !stdenv.isx86_64) [
"aarch64-apple-darwin"
])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can test on darwin, I think @kernelkind has an aarch64 linux machine.
does |
Yeah, works for me, tested on x86_64 Linux: RUST_LOG=debug cargo apk build
RUST_LOG=debug cargo apk build --target aarch64-linux-android
# `--arg android_emulator true` required
RUST_LOG=debug cargo apk build --target x86_64-linux-android |
|
@kernelkind I think the point of this is that we wouldn't use rustup at least for fetching the compiler? can you try with just a nix shell? |
I confirmed it on an aarch64 linux cloud server, it's working:
|
But the (/nix/store/n0mlzi96rg8p35zkndgf8cvnr9xxmipi-android-sdk-env/share/android-sdk/ndk/24.0.8215888/toolchains/llvm/prebuilt/linux-x86_64/bin/clang)
And for the master branch:
|
I'll draft this and try to achieve:
|
pre-install the system-images
add doc of using avd without android-studio